<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>网站登录</title>
</head>
<body>
<center>

</center>
<?php
mysql_connect("localhost","root","321abcD");
mysql_query("set names 'utf8' ");
mysql_select_db("mm");
$user="admin";
$pass=md5("123456");
//$sql=mysql_query("insert into `users`(`username`,`pass`) VALUES ('$user','$pass')");//增加

//$sql=mysql_query("delete from `users` WHERE `username`='ad'");//删除

//$sql=mysql_query("update `users` set `username`='123' WHERE `username` ='1'")//修改

//$sql=mysql_query("SELECT * FROM `users` ");
//$count=mysql_num_rows($sql);
//for($i=0;$i<$count;$i++){
//    print_r(mysql_fetch_assoc($sql));
//}

//if($set==1){
//    echo "123";
//}

$user=$_POST['user'];
$pass=$_POST['pass'];

?>
<center>
请输入信息<br/>
    <form action="index.php" method="post">
<div>
    账号：<input type="text" name="user"><br/>
</div>
<div>
    密码：<input type="text" name="pass"><br/>
</div>
    </form>
</center>

</body>
</html>
